package com.example.springboot_system.service;

import com.example.springboot_system.utils.ResponseResult;

import javax.servlet.http.HttpSession;

public interface AnnounceService {
    //根据id查询
    ResponseResult findAnnounceById(String hiddenId);

    ResponseResult findAllAnnounce(HttpSession session);

    ResponseResult updateAnnounceById(String hiddenId,String title,String contents, HttpSession session);

    ResponseResult addAnnounce(String addTitle,String addContents, HttpSession session);

    ResponseResult deleteAnnounceById(String hiddenId, HttpSession session);

    ResponseResult viewAnnounceById(String hiddenId);

    ResponseResult findAllAnnounceIf1(HttpSession session);

    ResponseResult setAnnStatus0(String hiddenId,HttpSession session);

    ResponseResult setAnnStatus1(String hiddenId,HttpSession session);
}
